{% extends "admin/base_site.html" %}
{% load i18n %}

{% block extrastyle %}{% load adminmedia %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/login.css" />{% endblock %}

{% block bodyclass %}login{% endblock %}

{% block content_title %}Em caso de problema com o login, favor procurar a Coordenação de TI.{% endblock %}

{% block breadcrumbs %}{% endblock %}

{% block content %}
{% if error_message %}
<p class="errornote">{{ error_message }}</p>
{% endif %}

<div id="content-main">
	<form action="{{ app_path }}" method="post" id="login-form">
		{{ form.non_field_errors }}
		<table>
			<tr>
				<td>
					<label for="id_username">{{ form.username.label }}</label>
				</td>
				<td>
					{{ form.username.errors }}
					{{ form.username }}
				</td>
			</tr>
			<tr>
				<td>
					<label for="id_password">{{ form.password.label }}</label>
				</td>
				<td>
					{{ form.password.errors }}
					<input type="password" id="id_password" name="password" />
					<input type="hidden" name="this_is_the_login_form" value="1" />
					<input type="hidden" name="post_data" value="{{ post_data }}" />
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<center>
						<label>&nbsp;</label>
						<input type="submit" value="{% trans 'Log in' %}" />
					</center>
				</td>
			</tr>
		</table>
	</form>
<script type="text/javascript">
document.getElementById('id_username').focus()
</script>	
</div>
{% endblock %}

{% block footer %}
{% endblock %}